package testeSelenium;

import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;

public class TesteLoginInvalido extends SeleneseTestCase {
	public void setUp() throws Exception {
		setUp("http://localhost:8080/Lembrete/index.jsf", "*firefox");
	}
	public void testNew() throws Exception {
		selenium.open("/Lembrete/index.jsf");
		selenium.type("document.forms[0].elements[1]", "asdfas");
		selenium.type("document.forms[0].elements[0]", "admin");
		selenium.click("document.forms[0].elements[3]");
		selenium.click("//form/a");
		selenium.waitForPageToLoad("30000");
	
		selenium.open("/Lembrete/index.jsf");
		selenium.type("document.forms[0].elements[1]", "admin");
		selenium.type("document.forms[0].elements[0]", "admin23");
		selenium.click("document.forms[0].elements[3]");
		selenium.click("//form/a");
		selenium.waitForPageToLoad("30000");
	
		selenium.open("/Lembrete/index.jsf");
		selenium.type("document.forms[0].elements[1]", "asdfas");
		selenium.type("document.forms[0].elements[0]", "admin1");
		selenium.click("document.forms[0].elements[3]");
		selenium.waitForPageToLoad("10000");
		selenium.click("//form/a");
		selenium.waitForPageToLoad("30000");
	
		selenium.open("/Lembrete/index.jsf");
		selenium.type("document.forms[0].elements[1]", "asdfas");
		selenium.type("document.forms[0].elements[0]", "admin2");
		selenium.click("document.forms[0].elements[3]");
		selenium.waitForPageToLoad("10000");
		selenium.click("//form/a");
		selenium.waitForPageToLoad("30000");
	
		selenium.open("/Lembrete/index.jsf");
		selenium.type("document.forms[0].elements[1]", "asdfas");
		selenium.type("document.forms[0].elements[0]", "admin@admin");
		selenium.click("document.forms[0].elements[3]");
		selenium.waitForPageToLoad("10000");
		selenium.click("//form/a");
		selenium.waitForPageToLoad("30000");
	
		selenium.open("/Lembrete/index.jsf");
		selenium.type("document.forms[0].elements[1]", "admin");
		selenium.type("document.forms[0].elements[0]", "daniel");
		selenium.click("document.forms[0].elements[3]");
		selenium.waitForPageToLoad("10000");
		selenium.click("//form/a");
		selenium.waitForPageToLoad("30000");
	
		
	
	}
}
